﻿<Window x:Class="QRCoodeImageFileReader.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:QRCoodeImageFileReader"
        mc:Ignorable="d"
        Title="MainWindow"  Height="526" Width="627" FontFamily="Century Gothic" MinHeight="526" MinWidth="627">
    <Grid>
        <Border BorderBrush="silver" BorderThickness="1" Margin="124,101,97,208" Name="ImageAreaBorder" AllowDrop="True" Drop="ImageAreaBorder_Drop" PreviewDragOver="ImageAreaBorder_PreviewDragOver">
            <Image Height="Auto" Name="chooseImage" Stretch="None" Width="Auto" ImageFailed="chooseImage_ImageFailed" HorizontalAlignment="Center" VerticalAlignment="Center" AllowDrop="True" Drop="chooseImage_Drop" PreviewDragOver="chooseImage_PreviewDragOver" />
            <Border.Background>
                <SolidColorBrush />
            </Border.Background>
        </Border>

        <TextBox Height="24" Margin="124,38,97,0" Name="sourceFile" VerticalAlignment="Top" TextChanged="sourceFile_TextChanged" AllowDrop="True" PreviewDragOver="sourceFile_PreviewDragOver" Drop="sourceFile_Drop" />
        <Button Content="File..." Height="23" HorizontalAlignment="Right" Margin="0,38,12,0" Name="fileChoose" VerticalAlignment="Top" Width="75" Click="fileChoose_Click" />
        <Label Content="Input" Height="28" Margin="12,36,553,0" Name="inputLabel" VerticalAlignment="Top" ClipToBounds="False" />
        <Button Content="Execute" Margin="0,0,12,19" Name="exeButton" Click="exeButton_Click" Height="23" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="75" />
        <Border BorderBrush="Silver" BorderThickness="1" Height="23" Margin="124,72,97,0" Name="border1" VerticalAlignment="Top" />
        <TextBlock Margin="124,72,97,0" Name="imageFileNameDisplay" Text="" Padding="5,2,0,0" Height="23" VerticalAlignment="Top" Drop="imageFileNameDisplay_Drop" AllowDrop="True" PreviewDragOver="imageFileNameDisplay_PreviewDragOver" />
        <Label Content="File Name" Height="28" Margin="12,67,525,0" Name="label1" VerticalAlignment="Top" />
        <Menu Height="23" Name="menu1" VerticalAlignment="Top" FontFamily="Century Gothic">
            <MenuItem Header="_File" Name="menuFile" >
                <MenuItem Header="_New" Name="menuNew" Click="menuNew_Click" />
                <Separator />
                <MenuItem Header="_Exit" Name="menuExit" Click="menuExit_Click" />
            </MenuItem>
        </Menu>
        <Label x:Name="label" Content="Result" HorizontalAlignment="Left" Margin="12,339,0,0" VerticalAlignment="Top"/>
        <Border BorderBrush="Silver" BorderThickness="1" HorizontalAlignment="Left" Height="100" Margin="125,337,0,0" VerticalAlignment="Top" Width="397">
            <TextBox x:Name="resultText" TextWrapping="Wrap" ScrollViewer.CanContentScroll="True" />

        </Border>
    </Grid>
</Window>
